using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using LngT.Interfaces;
using PL_DE_Lib;
using System.Collections.ObjectModel;

namespace LngTGUI
    {
    public partial class TesterForm: Form
        {
        public TesterForm()
            {
            InitializeComponent();
            }

        public static List<ItemResult> DoTesting( ReadOnlyCollection<IItem> items, TestingType type )
            {
            TesterForm frm = new TesterForm();
            List<ItemResult> result = new List<ItemResult>();
            foreach( IItem item in items )
                {
                if( !(item is PL_DE_Item ))
                    continue;
                frm.PopulateFormSettings( item, type );

                ItemResult ir = GetItemResult( frm );
                result.Add( ir );
                }
            return result;
            }

        private static ItemResult GetItemResult( TesterForm frm )
            {
            throw new Exception( "Implement me!" );
            }

        private void PopulateFormSettings( IItem item, TestingType type )
            {

            }
        }
    }